function Tab_OnMouseOver(eventTarget,tabClass)
{
	if(eventTarget.className != tabClass + " selected")
	{
		eventTarget.className = tabClass + " hover"
	}
}
function Tab_OnMouseOut(eventTarget,tabClass)
{
	if(eventTarget.className != tabClass + " selected")
	{
		eventTarget.className = tabClass
	}
}
function Tab_OnSelectServerClick(eventTarget,TabPageID)
{
		eventTarget.parentElement.parentElement.children[0].value = TabPageID;
}
function Tab_OnSelectClientClick(eventTarget,TabPageID,tabClass)
{
		RootTabDiv = eventTarget.parentElement.parentElement.children[1];
		RootTabPageDiv = eventTarget.parentElement.parentElement.children[2];
		for(i=0;i<RootTabDiv.children.length;i++)
		{
			RootTabDiv.children[i].className = tabClass;
		}
		for(i=0;i<RootTabPageDiv.children.length;i++)
		{
			RootTabPageDiv.children[i].style.display = "none";
		}

		document.getElementById(TabPageID).style.display = 'block';
		document.getElementById(TabPageID+"_Title").className = tabClass + ' selected';
		eventTarget.parentElement.parentElement.children[0].value = TabPageID;
}
